Find pixel
Get the position of the first pixel with a given color.
Node Data | |
|---|---|
Display name | |
Find pixel | |
Internal name | |
Node_Find_Pixel | |
Inheritances | |
| Node_Processor | |
| Node_Find_Pixel | |
Inputs | |
Node_Find_Pixel | |
surface |
Surface In |
color |
Search Color |
float |
Tolerance |
bool |
Find All |
bool |
Include Alpha |
float |
Alpha Tolerance |
Outputs | |
Node_Find_Pixel | |
integer |
Position |
This node will search throught every pixel in the image and returns the position of the pixel with a given color. With [0, 0] be the top left of the image, x axis goes to the right and y axis goes down.
Properties
| Property | Description |
|---|---|
| Search Color | Color of the pixel to find |
| Tolerance | How much the color can differ from the search color to be match |
| Find All | Returns all matches pixel instead of the first pixel |
| Include Alpha | Include alpha channel in the search |
| Alpha Tolerance | How much the alpha channel can differ from the search color to be match |